import request from '@/utils/request'

// 查询支付通道列表
export function listSyspayway(query) {
  return request({
    url: '/system/syspayway/list',
    method: 'get',
    params: query
  })
}

// 查询支付通道详细
export function getSyspayway(wayId) {
  return request({
    url: '/system/syspayway/' + wayId,
    method: 'get'
  })
}

// 新增支付通道
export function addSyspayway(data) {
  return request({
    url: '/system/syspayway',
    method: 'post',
    data: data
  })
}

// 修改支付通道
export function updateSyspayway(data) {
  return request({
    url: '/system/syspayway',
    method: 'put',
    data: data
  })
}

// 删除支付通道
export function delSyspayway(wayId) {
  return request({
    url: '/system/syspayway/' + wayId,
    method: 'delete'
  })
}
